<template>
  <svg class="i-svg" :class="svgClass" aria-hidden="true">
    <use :xlink:href="`#svg-${name}`"></use>
  </svg>
</template>

<script>
export default {
  name: 'ISvg',
  props: {
    name: {
      type: String,
      required: true
    },
    svgClass: {
      type: String
    }
  }
};
</script>

<style scoped>
.i-svg {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
}
</style>